Repository navigation
docs: add public-content rules for RFCs and all public text - #2634
Merged
Merged
Conversation
Rule out external customer/user names and Ant Group/Alibaba internal or SSO-only document links in public content, require public references, keep en/zh in sync, and restrict RFC header fields to the template plus the optional Tracking Issue. Applied to CONTRIBUTING.md, AGENTS.md, and both RFC READMEs.
AlexStocks
requested review from
PsiACE,
frostming and
zhanghuidinah
as code owners
November 13, 2026 14:03
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
hidb4ai
approved these changes
Nov 13, 2026
hireview001
approved these changes
Nov 13, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
No tracking issue. This is the prevention-rules follow-up to #2633, which removed an inaccessible internal requirement link from RFC 1614. #2633 was merged while this rules commit was still being prepared, so the rules are submitted separately here.
Rationale for this change
RFC 1614 (merged in #1614) carried a header line linking an Ant Group internal Yuque requirements document, with an external customer named in the Chinese link text but omitted from the English one. #2633 removed the line; it did not add any rule that would stop the same class of defect from recurring.
Two gaps made the original defect possible:
CONTRIBUTING.md, the RFC guidelines, orAGENTS.md. Neither contributors nor coding agents had a written instruction about external names, internal links, or the fact that a merged RFC is a permanent public record that outsiders must be able to read and verify.0000_example.mdlists three fields and the README allows one optionalTracking Issue, but nothing said that inventing a header field for a requirement source is out of contract.RFC #1614's own AI usage statement says it was written with Codex assistance, so a rule that only human contributors read would not cover the path that produced the defect. This PR adds the rule at three levels: the general contribution guide, the coding-agent guide, and the bilingual RFC process guide.
What changes are included in this PR?
Four files, 47 inserted lines, no deletions:
CONTRIBUTING.md— new paragraphs under "Write Documentation": merged content is a permanent public record; do not name external customers, users, partners, or their internal projects; do not link to Ant Group / Alibaba internal documents or anything requiring corporate SSO, in particularyuque.antfin.com/...(also covering other intranet domains, private document IDs, and internal chat or ticket links); reference public GitHub issues, PRs, RFCs, or upstream public docs instead; keepdocs/en/anddocs/zh/in sync, including redactions.AGENTS.md— a new "Public Documentation Content" section applying the same constraints to coding agents, with pointers toCONTRIBUTING.mdand the RFC READMEs.docs/en/rfcs/README.mdanddocs/zh/rfcs/README.md— matching new sections ("Public content and references" / "公开内容与引用规范"): the two prohibitions, public-reference alternatives, a rule that RFC header fields come only from0000_example.mdplus the optionalTracking Issue, and agit greppre-submit check for real internal URLs. Both locales are updated together with identical section order.No runtime code, API contract, generated file, or existing RFC content changes.
Are there any user-facing changes?
No runtime or API change. Contributors and coding agents now have an explicit written rule for public content, and the RFC process has an explicit header field contract plus a pre-submit check.
How was this change tested?
git diff --check— clean;git diff --stat— 4 files, 47 insertions, 0 deletions.http(s)://URLs, so the check does not report its own documentation.docs/en/rfcs/README.mdanddocs/zh/rfcs/README.mdsection headings compared: 6 sections each, same order, with the new section in the same position.make docs-testwas not run: the isolated worktree has no installed website dependencies. The added links are one absolute GitHub URL and one same-directory relative link already used in the same file; no new in-site link target is introduced. Happy to run the full gate if reviewers want it.AI usage statement
The rule text and this description were prepared with WorkBuddy (Tencent Hunyuan). The diff was reviewed against the rendered output and the self-check command before pushing.